package com.lottery.dao;

import com.lottery.pojo.TableWinningHistories;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface WinningHistoriesDao {

    List<TableWinningHistories> getOrdersByDateRange(String machine_number, String startTime, String endTime);

    List<TableWinningHistories> getPrizesFromWinningHistory(String machine_number, int region_id, String prizes_type, int rank, int digit, String startTime, String endTime);

    ///
    void deleteById(int id);

    //432
    void update(int bet_number_id, String prizes_type, double prizes);

    void add(@Param("h") TableWinningHistories history);

    List<TableWinningHistories> getByBetNumberId(int bet_number_id);
}
